package com.syni.mdd.yhd.common.all.entity.pay.wxmodel;

import com.ijpay.core.model.BaseModel;
import com.ijpay.wxpay.model.ProfitSharingModel;
import lombok.Data;

/**
 * @className ReceiversModel
 * @description TOO
 * @Author cfx
 * @DATE 2020/3/16 12:00
 * @VERSION 1.0
 **/
@Data
public class ReceiversModel extends BaseModel {
    private String type;
    private String account;
    private Integer amount;
    private String description;

    public static ReceiversModel.ReceiversModelBuilder builder() {
        return new ReceiversModel.ReceiversModelBuilder();
    }

    public ReceiversModel(String type, String account, Integer amount, String description) {
        this.type = type;
        this.account = account;
        this.amount = amount;
        this.description = description;
    }

    public static class ReceiversModelBuilder {
        private String type;
        private String account;
        private Integer amount;
        private String description;

        ReceiversModelBuilder() {
        }

        public ReceiversModel.ReceiversModelBuilder type(String type) {
            this.type = type;
            return this;
        }

        public ReceiversModel.ReceiversModelBuilder account(String account) {
            this.account = account;
            return this;
        }

        public ReceiversModel.ReceiversModelBuilder amount(Integer amount) {
            this.amount = amount;
            return this;
        }

        public ReceiversModel.ReceiversModelBuilder description(String description) {
            this.description = description;
            return this;
        }

        public ReceiversModel build() {
            return new ReceiversModel(this.type, this.account, this.amount, this.description);
        }

    }
}
